package com.tcm.invite.service;

import com.base.core.exception.ServiceException;
import com.base.core.utils.R;
import com.tcm.invite.domain.vo.InviterVO;

import java.util.Map;

public interface InviteService {

    InviterVO findByInviteCode(String inviteCode, String spreadType);

    String createInviteLink(String cellphone, String spreadType);

    String createInviteFriendLink(String cellphone, String invitePhone) throws ServiceException;

    String inviteQrcode(String cellphone, String spreadType);

    /**
     * 保存邀请数据信息
     * @param param 邀请人传递的参数
     */
    R saveInviteInfo(String spreaType, String param);

    Map<String,String> getPhoneNumber(String encryptedData, String iv, String session_key);

    Map<String,String> miniLogin(String code);
}
